import { Body, Controller,Post } from '@nestjs/common';
import { EmailService } from './email.service';
import { Public } from 'src/decorations/public.decorator';

@Controller('email')
export class EmailController {
  constructor(private readonly emailService: EmailService) {}

  @Post('sendEmail')
  @Public()
  sendEmail(@Body() body) {
    return this.emailService.sendEmail(body)
  }
}
